package com.example.demo.mapper;

import com.example.demo.pojo.AirQualityIndex;

import java.util.List;

public interface AirQualityIndexMapper {
    /**
     * 按照指定内容查询空气质量记录
     * @param airQualityIndex
     * @return
     */
    List<AirQualityIndex> selectAriQualityByContent(AirQualityIndex airQualityIndex);

    /**
     * 添加新的空气质量记录
     * @param airQualityIndex
     * @return
     */
    int insertAriQuality(AirQualityIndex airQualityIndex);

    /**
     * 根据id查找指定的记录
     * @param id
     * @return
     */
    AirQualityIndex selectAriQualityById(Integer id);

    /**
     * 修改指定记录
     * @param airQualityIndex
     * @return
     */
    int updateAriQuality(AirQualityIndex airQualityIndex);

    /**
     * 根据id删除记录
     * @param id
     * @return
     */
    int deleteAriQuality(int id);

}
